<?php
// +----------------------------------------------------------------------
// | 文件: index.php
// +----------------------------------------------------------------------
// | 功能: 提供count api接口
// +----------------------------------------------------------------------
// | 时间: 2021-12-12 10:20
// +----------------------------------------------------------------------
// | 作者: rangangwei<gangweiran@tencent.com>
// +----------------------------------------------------------------------

namespace App\Http\Controllers;

use Error;
use Exception;
use App\Counters;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Log;

class CounterController extends Controller
{
    /**
     * 获取todo list
     * @return Json
     */
    public function getCount()
    {
        try {
            $res = ['code'=>200,'message'=>'success123'];
            return response()->json($res);
        } catch (Error $e) {
            $res = ['code'=>201,'message'=>''];
            return response()->json($res);
        }
    }
}
